#include <iostream>
#include <vector>
using namespace std;

void TestVectorExpand()
{
	size_t sz;
	vector<int> v;
	sz = v.capacity();
	std::cout << "capacity changed: " << sz << '\n';

	std::cout << "making v grow:\n";
	for (int i = 0; i < 100; ++i)
	{
		v.push_back(i);
		if (sz != v.capacity())
		{
			sz = v.capacity();
			std::cout << "capacity changed: " << sz << '\n';
		}
	}
}


int main()
{
	
	TestVectorExpand();


	return 0;
}
